$(document).ready(function(){
	/* 浮动菜单 */
	var float_menu = "#float_menu";
	$(float_menu).mouseover(function(){$(float_menu).children().show();$(float_menu).css("background-color", "rgb(199,213,218)");});
	$(float_menu).mouseout(function(){$(float_menu).children().hide();$(float_menu).css("background-color", "");});
	$(float_menu).mouseout();
	/* 首页浮动菜单 */
	var index_float_menu = "#index_float_menu";
	$(index_float_menu).mouseover(function(){$(index_float_menu).children().show();$(index_float_menu).css("background-image", "url(../images/xl.gif)");});
	$(index_float_menu).mouseout(function(){$(index_float_menu).children().hide();$(index_float_menu).css("background-image", "");});
	$(index_float_menu).mouseout();
	
	/* 首页插入  flash */
	$('#flash').flash({ src: '/images/flash.swf', width: 1000, height: 349,flashvars: { foo: 'bar', baz: 'zoo' } ,wmode: 'transparent' },{ version: 8 } );
	
	/* 产品flash 如果有该图片，就是产品页面，先将原来的图片删除，再根据中英文插入相应的flash */
	if($("#background_image").attr("src") == "images/p_imga.jpg"){
		$("#background_image").remove();
		if($('#cp').length == 0) {
			$('#cpen').flash({ src: '/images/cpen.swf', width: 983, height: 245,flashvars: { foo: 'bar', baz: 'zoo' } ,wmode: 'transparent' },{ version: 8 } );
		} else {
			$('#cp').flash({ src: '/images/cp.swf', width: 983, height: 245,flashvars: { foo: 'bar', baz: 'zoo' } ,wmode: 'transparent' },{ version: 8 } );
		}
	}
	
	/* 产品列表滑动 */
	$(".pro_page").click(function(){
		$(".pro_list").hide();
		$("#pro_list" + $(this).attr("id")).show();
	});
	
	$(".pro_page").mouseover(function(){
		$(this).click();
	});
	
});

/* 下载 */
function down(id) {
	$.get("/down/" + id);
}